package com.p2p.front.dal.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.p2p.base.dao.BaseMapper;
import com.p2p.base.page.PageVo;
import com.p2p.front.dal.model.LoanInfo;
import com.p2p.front.web.form.LoanApplyForm;

public interface LoanApplyDao extends BaseMapper {

	
	@Insert("insert into p2p_apply_loan(uid,name,mobile,job,industry,company_name,loan_amount,create_time)values(#{userId},#{realname},#{mobile},#{title},#{industry},#{company},#{money},now())")
	public void save(LoanApplyForm loanApplyForm);
	
	@Select("select * from p2p_apply_loan order by create_time desc")
	List<Map<String, Object>> listApplyLoanInfo(PageVo form);
}
